package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.ZhwyDepositManageMapper;
import com.ruoyi.system.domain.ZhwyDepositManage;
import com.ruoyi.system.service.IZhwyDepositManageService;

/**
 * 押金管理Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-05-07
 */
@Service
public class ZhwyDepositManageServiceImpl implements IZhwyDepositManageService 
{
    @Autowired
    private ZhwyDepositManageMapper zhwyDepositManageMapper;

    /**
     * 查询押金管理
     * 
     * @param id 押金管理主键
     * @return 押金管理
     */
    @Override
    public ZhwyDepositManage selectZhwyDepositManageById(Long id)
    {
        return zhwyDepositManageMapper.selectZhwyDepositManageById(id);
    }

    /**
     * 查询押金管理列表
     * 
     * @param zhwyDepositManage 押金管理
     * @return 押金管理
     */
    @Override
    public List<ZhwyDepositManage> selectZhwyDepositManageList(ZhwyDepositManage zhwyDepositManage)
    {
        return zhwyDepositManageMapper.selectZhwyDepositManageList(zhwyDepositManage);
    }

    /**
     * 新增押金管理
     * 
     * @param zhwyDepositManage 押金管理
     * @return 结果
     */
    @Override
    public int insertZhwyDepositManage(ZhwyDepositManage zhwyDepositManage)
    {
        return zhwyDepositManageMapper.insertZhwyDepositManage(zhwyDepositManage);
    }

    /**
     * 修改押金管理
     * 
     * @param zhwyDepositManage 押金管理
     * @return 结果
     */
    @Override
    public int updateZhwyDepositManage(ZhwyDepositManage zhwyDepositManage)
    {
        return zhwyDepositManageMapper.updateZhwyDepositManage(zhwyDepositManage);
    }

    /**
     * 批量删除押金管理
     * 
     * @param ids 需要删除的押金管理主键
     * @return 结果
     */
    @Override
    public int deleteZhwyDepositManageByIds(Long[] ids)
    {
        return zhwyDepositManageMapper.deleteZhwyDepositManageByIds(ids);
    }

    /**
     * 删除押金管理信息
     * 
     * @param id 押金管理主键
     * @return 结果
     */
    @Override
    public int deleteZhwyDepositManageById(Long id)
    {
        return zhwyDepositManageMapper.deleteZhwyDepositManageById(id);
    }
}
